<template xmlns:v-on="http://www.w3.org/1999/xhtml">
  <div class="content">
      <!-- 头部 -->
    <div class="main-title">
      <ul>
        <li>
          <div @click="navBackClick(1)" class="main-title-left main-title-noSelect">
            首页
          </div>
          <div class="main-title-right">
            /
          </div>
        </li>
        <li>
          <div @click="navBackClick(1)" class="main-title-left main-title-noSelect">
            简历库
          </div>
          <div class="main-title-right">
            /
          </div>
        </li>
        <li>
          <div class="main-title-left main-title-select">
            简历详情
          </div>
          <div class="main-title-right">
            <!-- / -->
          </div>
        </li>
      </ul>
    </div>
    <div class="content-center">
      <div class="main-list">
        <div class="main-list-title">
          <div @click="mainlistselectClick(0)" :class="{'main-list-basic':ismainlistbasic,'main-list-select':ismainlistselect == 0}">
            基本信息
          </div>
          <div @click="mainlistselectClick(1)" :class="{'main-list-feedback':ismainlistfeedback,'main-list-select':ismainlistselect == 1}">
            反馈信息
          </div>
        </div>
        <!-- 详情 -->
        <div v-show="mainContentShow == 0" class="main-content">
          <div class="list-two">
            <div class="list-two-list">
              <div>渠道</div>
              <div>
                {{invitationObj.source | sourceFun}}
              </div>
            </div>
            <div class="list-two-list">
              <div>标签</div>
              <div>
                {{invitationObj.status | statusFun}}
              </div>
            </div>
          </div>
          <div class="list-two">
            <div class="list-two-list">
              <div>姓名</div>
              <div>
                {{invitationObj.name | strFun}}
              </div>
            </div>
            <div class="list-two-list">
              <div>性别</div>
              <div>
                {{invitationObj.sex | strFun}}
              </div>
            </div>
          </div>
          <div class="list-two">
            <div class="list-two-list">
              <div>手机号</div>
              <div>
                {{invitationObj.phone | strFun}}
              </div>
            </div>
            <div class="list-two-list">
              <div>邮箱</div>
              <div>
                {{invitationObj.email | strFun}}
              </div>
            </div>
          </div>
          <div class="list-two">
            <div class="list-two-list">
              <div>学历</div>
              <div>
                {{invitationObj.education | educationFun}}
              </div>
            </div>
            <div class="list-two-list">
              <div>岗位</div>
              <div>
                {{invitationObj.position | positionFun}}
              </div>
            </div>
          </div>
          <div class="list-two">
            <div class="list-two-list">
              <div>期望薪资</div>
              <div>
                {{invitationObj.expectedSalary | strFun}}
              </div>
            </div>
            <div class="list-two-list">
              <div>目前薪资</div>
              <div>
                {{invitationObj.currentSalary | strFun}}
              </div>
            </div>
          </div>
          <div class="list-two">
            <div class="list-two-list">
              <div>工作年限</div>
              <div>
                {{invitationObj.workYear | strFun}}
              </div>
            </div>
            <div class="list-two-list">
              <div></div>
              <div>
              </div>
            </div>
          </div>
          <div class="list-text">
            <div>简介</div>
            <div>
              {{invitationObj.background | strFun}}
            </div>
          </div>
          <div class="list-file">
            <div>
              附件简历
            </div>
            <div class="list-file-right">
              <div class="list-file-r-img">
                <div @click="lookClick">预览简历</div>
                <!-- <div v-else >暂无简历</div> -->
              </div>
            </div>
          </div>
          <div class="list-button">
            <div class="button-save" @click="upodateClick">
              编&nbsp;&nbsp;辑
            </div>
            <div class="button-cancel" @click="backClick">
              取&nbsp;&nbsp;消
            </div>
          </div>
        </div>
        <!-- 反馈 -->
        <div v-show="mainContentShow == 1" class="main-content">
          <div class="result-content">
            <ul>
              <li v-show="resultLists.length > 0" class="result-li" v-for="(item,index) in resultLists" :key="index">
                <div class="result-li-top result-li-top-o">
                  <div class="li-left">沟通反馈</div>
                  <div class="li-right">
                    {{item.type | typeFun}}
                  </div>
                </div>
                <div class="result-li-top result-li-top-o">
                  <div class="li-left">沟通时间</div>
                  <div class="li-right">
                    {{item.lastModDate | timeFun}}
                  </div>
                </div>
                <div class="result-li-top result-li-top-o">
                  <div class="li-left">沟通人</div>
                  <div class="li-right">
                    {{item.userNames | strFun}}
                  </div>
                </div>
                <div class="result-li-top result-li-top-t">
                  <div class="li-left">沟通结果</div>
                  <div class="li-right">
                    {{item.remark | strFun}}
                  </div>
                </div>
              </li>
              <li v-show="resultLists.length == 0" id="nullLi">
                <img src="/static/img/空状态.png" alt="">
              </li>
            </ul>
          </div>
        </div>
        <!-- 编辑 -->
        <div v-show="mainContentShow == 2" class="main-content" v-loading="updateLoading">
          <div class="list-two">
            <div class="list-two-list">
              <div>渠道</div>
              <div>
                <select @change="selectTypesClick" v-model="channeltype">
                  <option v-for="(type,index) in channeltypes" v-bind:value="index" :key="index">{{type.name}}</option>
                </select>
              </div>
            </div>
            <div class="list-two-list">
              <div>标签</div>
              <div>
                <select @change="selectTypesClick" v-model="labeltype">
                  <option v-for="(type,index) in labeltypes" v-bind:value="index" :key="index">{{type.name}}</option>
                </select>
              </div>
            </div>
          </div>
          <div class="list-two">
            <div class="list-two-list">
              <div>姓名</div>
              <div>
                <input type="text" v-model="nameVal">
              </div>
            </div>
            <div class="list-two-list">
              <div>性别</div>
              <div>
                <select @change="selectTypesClick" v-model="sextype">
                  <option v-for="(type,index) in sextypes" v-bind:value="index" :key="index">{{type.name}}</option>
                </select>
              </div>
            </div>
          </div>
          <div class="list-two">
            <div class="list-two-list">
              <div>手机号</div>
              <div>
                <input type="text" v-model="phoneVal">
              </div>
            </div>
            <div class="list-two-list">
              <div>邮箱</div>
              <div>
                <input type="text" v-model="emailVal">
              </div>
            </div>
          </div>
          <div class="list-two">
            <div class="list-two-list">
              <div>学历</div>
              <div>
                <select @change="selectTypesClick" v-model="educationtype">
                  <option v-for="(type,index) in educationtypes" v-bind:value="index" :key="index">{{type.name}}</option>
                </select>
              </div>
            </div>
            <div class="list-two-list">
              <div>岗位</div>
              <div>
                <select @change="selectTypesClick" v-model="postype">
                  <option v-for="(type,index) in postypes" v-bind:value="index" :key="index">{{type.name}}</option>
                </select>
              </div>
            </div>
          </div>
          <div class="list-two">
            <div class="list-two-list">
              <div>期望薪资</div>
              <div>
                <input type="text" v-model="expectedSalaryVal">
              </div>
            </div>
            <div class="list-two-list">
              <div>目前薪资</div>
              <div>
                <input type="text" v-model="currentSalaryVal">
              </div>
            </div>
          </div>
          <div class="list-two">
            <div class="list-two-list">
              <div>工作年限</div>
              <div>
                <input type="text" v-model="workYearVal">
              </div>
            </div>
            <div class="list-two-list">
              <div></div>
              <div>
              </div>
            </div>
          </div>
          <div class="list-text">
            <div>简介</div>
            <div>
              <textarea v-model="backgroundVal"></textarea>
            </div>
          </div>
          <div class="list-file">
            <div>
              附件简历
            </div>
            <div class="list-file-right">
              <div class="list-file-r-file">
                <div @click="lookClick">预览简历</div>
                <!-- <div v-else >暂无简历</div> -->
              </div>
              <div class="list-file-r-file list-file-r-look">
                <label for="imageFile">
                  <img src="/static/img/下载.png" alt="">&nbsp;&nbsp;上传附件
                </label>
                <input id="imageFile" type="file" @change="updateFile">
              </div>

            </div>
          </div>
          <div class="list-button">
            <div class="button-save" @click="addClick">
              保&nbsp;&nbsp;存
            </div>
            <div class="button-cancel" @click="backClick">
              取&nbsp;&nbsp;消
            </div>
          </div>
        </div>
      </div>
      <!-- 拦截框 -->
      <div :class="{showdel:isShowdel}" class="delPopup">
        <transition name="slide-fade">
          <div class="delContent">
            <v-mIntercept @ok="confirmClick" @canle="cancelClick" :name="titlename"></v-mIntercept>
          </div>
        </transition>
      </div>
      <!-- 预览 -->
      <div v-show="isShowLook" class="lookShow">
        <div class="main-lookShow">
          <div class="main-lookShow-top">
            <div>个人简历</div>
            <div @click="lookHideClick">X</div>
          </div>
          <div class="main-lookShow-bottom" v-show="updateOrLokkShow">
            <iframe :src='pdfurls' v-if="pdfurlsShow" width="100%" height="500" scrolling="no">
              您的浏览器不支持框架
            </iframe>
            <div class="main-lookShow-bottom-pdfImg" v-else>
              <img :src="pdfurls" alt="">
            </div>
          </div>
          <div class="main-lookShow-bottomNoLOk" v-show="!updateOrLokkShow">
              此简历暂不不支持预览，请点击下载查看
          </div>
          <div class="main-lookShow-button">
            <!--  @click="upLookClick" -->
            <a class="button-lookShow-save" :href="pdfurlsHref">下载</a>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import { mapActions } from "vuex";
import mIntercept from "../module/mIntercept";
export default {
  components: {
    "v-mIntercept": mIntercept
  },
  data() {
    return {
      updateLoading: false,
      updateOrLokkShow: true,
      pdfurlsShow: false,
      pdfurlsHref: "",
      pdfurls: "",
      isShowLook: false,
      mainContentShow: 0,
      ismainlistfeedback: true,
      ismainlistbasic: true,
      ismainlistselect: 0,
      postype: "0",
      postypes: [],
      channeltype: "0",
      channeltypes: [],
      educationtype: "0",
      educationtypes: [
        { name: "无学历", inde: 1 },
        { name: "初中", inde: 2 },
        { name: "职高", inde: 4 },
        { name: "中专", inde: 8 },
        { name: "技校", inde: 16 },
        { name: "高中", inde: 32 },
        { name: "大专", inde: 64 },
        { name: "本科", inde: 128 },
        { name: "硕士", inde: 256 },
        { name: "博士", inde: 512 },
        { name: "三本", inde: 1024 },
        { name: "二本", inde: 2048 },
        { name: "一本", inde: 4096 },
        { name: "211", inde: 8192 },
        { name: "985", inde: 16384 }
      ],
      sextype: "0",
      sextypes: [{ name: "男" }, { name: "女" }],
      labeltype: "0",
      labeltypes: [{ name: "其他" }, { name: "储备人才" }],
      isShowdel: true,
      intercept: false,
      toPath: "",
      titlename: "劳动成果还未保存，是否退出？",
      invitationObj: {},
      upFileUrl: "",
      nameVal: "",
      phoneVal: "",
      emailVal: "",
      workYearVal: "",
      expectedSalaryVal: "",
      currentSalaryVal: "",
      backgroundVal: "",
      addObj: {},
      resultLists: []
    };
  },
  // 模块新建时
  created: function() {
    var self = this;
    self.invitationObj = JSON.parse(sessionStorage.getItem("allListObj"));
    self.channeltypes = JSON.parse(sessionStorage.getItem("sourcestr"));
    self.postypes = JSON.parse(sessionStorage.getItem("poststr"));
    self.nameVal = self.invitationObj.name;
    self.workYearVal = self.invitationObj.workYear || "";
    self.expectedSalaryVal = self.invitationObj.expectedSalary;
    self.currentSalaryVal = self.invitationObj.currentSalary;
    self.phoneVal = self.invitationObj.phone;
    self.backgroundVal = self.invitationObj.background;
    self.upFileUrl = self.invitationObj.file;
    self.emailVal = self.invitationObj.email;
    self.sextype = self.invitationObj.sex == "男" ? 0 : 1;
    if (self.invitationObj.status == 1) {
      self.labeltype = 0;
    } else if (self.invitationObj.status == 2) {
      self.labeltype = 1;
    }
    self.channeltypes.forEach(function(ele, ind) {
      if (ele.value == self.invitationObj.source) {
        self.channeltype = ind;
      }
    });
    self.postypes.forEach(function(ele, ind) {
      if (ele.value == self.invitationObj.position) {
        self.postype = ind;
      }
    });
    self.educationtypes.forEach(function(ele, ind) {
      if (ele.inde == self.invitationObj.education) {
        self.educationtype = ind;
      }
    });
    var itemArr = [];
    itemArr.push({ op: "eq", column: "biz_id", value: [self.$route.query.id] });
    self
      .getevenpaget({
        pageIndex: 1,
        pageSize: 300,
        items: itemArr
      })
      .then(data => {
        if (data.code == 200) {
          self.resultLists = data.data.records;
        } else {
          self.$message({
            type: "info",
            message: data.message
          });
        }
      })
      .catch(msg => {
        self.$message({
          type: "info",
          message: "服务器异常!"
        });
        this.$router.push({
          path: "/login"
        });
      });
  },
  // 计算属性
  mounted() {},
  // 事件处理
  methods: {
    // 预览
    lookHideClick() {
      this.isShowLook = false;
      this.isShowfeedback = false;
      this.pdfurlsShow = false;
    },
    upLookClick() {
      var self = this;
      window.open(self.invitationObj.file);
    },
    lookClick() {
      var self = this;
      if (self.invitationObj.file) {
        if (
          self.invitationObj.file.indexOf(".PNG") > -1 ||
          self.invitationObj.file.indexOf(".png") > -1 ||
          self.invitationObj.file.indexOf(".jpg") > -1
        ) {
          self.pdfurls = self.invitationObj.file;
          self.pdfurlsShow = false;
          self.isShowLook = true;
          self.updateOrLokkShow = true;
          self.pdfurlsHref = self.invitationObj.file;
        } else {
          self.pdfurlsHref = self.invitationObj.file;
          var fileStr = self.invitationObj.file;
          fileStr = fileStr.split("file/")[1];
          var fileUpdate = self.invitationObj.file;
          fileUpdate = fileUpdate.split("file/")[1].split(".")[1];
          self.isShowLook = true;
          if (fileUpdate == "doc") {
            self.updateOrLokkShow = false;
          } else {
            self.updateOrLokkShow = true;
            self
              .getuploaddocx2PdfPreviewer({
                name: fileStr
              })
              .then(data => {
                if (data.code == 200) {
                  self.pdfurls =
                    "/static/PDFShow/generic/web/viewer.html?file=" +
                    data.data.src;
                  this.pdfurlsShow = true;
                } else {
                  self.$message({
                    type: "info",
                    message: data.message
                  });
                }
              })
              .catch(msg => {
                this.$router.push({
                  path: "/login"
                });
                self.$message({
                  type: "info",
                  message: "服务器异常!"
                });
              });
          }
        }
      } else {
        self.$message({
          type: "info",
          message: "暂无简历!"
        });
      }
    },
    // 面包屑返回
    navBackClick(index) {
      if (index == 2) {
        this.$router.push({
          path: "/home/resume/all"
        });
      } else if (index == 1) {
        this.$router.push({
          path: "/home/resume/all"
        });
      }
    },
    // 上传简历
    updateFile(e) {
      var self = this;
      var files = e.target.files || e.dataTransfer.files;
      if (files[0]) {
        var fileData = files[0];
        self.updateFileWork(fileData);
      }
    },
    updateFileWork(file) {
      var self = this;
      var formdata = new FormData();
      formdata.append("file", file);
      self
        .getuploadFile(formdata)
        .then(data => {
          if (data.code == 200) {
            self.$message({
              message: "上传文件成功!",
              type: "success"
            });
            self.upFileUrl = data.data.src;
            self.invitationObj.file = self.upFileUrl;
            self.updateFileShow = false;
          } else {
            self.$message({
              type: "info",
              message: data.message
            });
          }
        })
        .catch(msg => {
          self.$message({
            type: "info",
            message: "服务器异常!"
          });
          this.$router.push({
            path: "/login"
          });
        });
    },
    backClick() {
      this.$router.push({
        path: "/home/resume/all"
      });
    },
    // 编辑
    addClick() {
      var self = this;
      var vFunFalse = self.vFun();
      self.addObj["source"] = self.channeltypes[self.channeltype].value;
      self.addObj["position"] = self.postypes[self.postype].value;
      if (self.labeltypes[self.labeltype].name == "其他") {
        self.addObj["status"] = 1;
      } else {
        self.addObj["status"] = 2;
      }
      self.addObj["education"] = self.educationtypes[self.educationtype].inde;
      self.addObj["sex"] = self.sextypes[self.sextype].name;
      self.addObj["id"] = self.$route.query.id;
      if (vFunFalse == true) {
        self.updateLoading = true;
        self
          .gethumanResource(self.addObj)
          .then(data => {
            self.updateLoading = false;
            if (data.code == 200) {
              self.$message({
                type: "success",
                message: "修改成功"
              });
              self.$router.push({
                path: "/home/resume/all"
              });
            } else {
              self.$message({
                type: "info",
                message: data.message
              });
            }
          })
          .catch(msg => {
            self.updateLoading = false;
            self.$message({
              type: "info",
              message: "服务器异常!"
            });
            this.$router.push({
              path: "/login"
            });
          });
      }
    },
    vFun() {
      var self = this;
      var phoneReg = new RegExp(/^\d{11}$/);
      var numReg = new RegExp(/^\d{1,7}$/);
      var num1Reg = new RegExp(/^\d{1,2}$/);
      var emailReg = new RegExp(
        /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/
      );
      var strReg = new RegExp(/^[\u4e00-\u9fa5]{2,10}$/);
      var nameReg = new RegExp(/^[a-zA-Z\u4e00-\u9fa5]{1,10}$/);
      var vFunFalse = false;
      if (
        nameReg.test(self.nameVal) == true &&
        phoneReg.test(self.phoneVal) == true
      ) {
        self.addObj["name"] = self.nameVal;
        self.addObj["phone"] = self.phoneVal;
        if (
          self.expectedSalaryVal ||
          self.workYearVal ||
          self.currentSalaryVal ||
          self.emailVal
        ) {
          if (self.expectedSalaryVal) {
            self.addObj["expectedSalary"] = self.expectedSalaryVal;
          } else {
            delete self.addObj.expectedSalary;
          }
          if (emailReg.test(self.emailVal) == true) {
            self.addObj["email"] = self.emailVal;
          } else {
            self.$message({
              type: "info",
              message: "邮箱项输入不正确"
            });
            vFunFalse = false;
          }
          if (numReg.test(self.currentSalaryVal * 1) == true) {
            self.addObj["currentSalary"] = self.currentSalaryVal * 1;
          } else {
            self.$message({
              type: "info",
              message: "薪资项项为数字且最七两位"
            });
            vFunFalse = false;
          }
          console.log(self.workYearVal);
          if (num1Reg.test(self.workYearVal * 1) == true) {
            self.addObj["workYear"] = self.workYearVal * 1;
          } else {
            self.$message({
              type: "info",
              message: "工作年限项为数字且最大两位"
            });
            vFunFalse = false;
          }
          if (
            num1Reg.test(self.workYearVal * 1) == true &&
            numReg.test(self.currentSalaryVal * 1) == true
          ) {
            vFunFalse = true;
          }
        } else {
          vFunFalse = true;
        }
      } else {
        if (nameReg.test(self.nameVal) == false) {
          self.$message({
            type: "info",
            message: "姓名项为必填且为汉字和字母组合"
          });
        } else if (phoneReg.test(self.phoneVal) == false) {
          self.$message({
            type: "info",
            message: "手机号项输入不正确"
          });
        }
        vFunFalse = false;
      }
      if (self.backgroundVal) {
        self.addObj["background"] = self.backgroundVal;
      } else {
        delete self.addObj.background;
      }
      if (self.upFileUrl) {
        self.addObj["file"] = self.upFileUrl;
      } else {
        delete self.addObj.file;
      }

      return vFunFalse;
    },
    // 编辑
    upodateClick() {
      this.mainContentShow = 2;
    },
    // 头部切换
    mainlistselectClick(index) {
      this.mainContentShow = index;
      this.ismainlistselect = index;
    },
    selectTypesClick() {},
    confirmClick() {
      this.intercept = true;
      var url = this.toPath;
      this.$router.push({
        path: url
      });
    },
    //取消未保存弹出框
    cancelClick() {
      this.isShowdel = true;
    },
    ...mapActions([
      "gethumanResource",
      "getevenpaget",
      "getuploadFile",
      "getuploaddocx2PdfPreviewer"
    ])
  },
  // 过滤
  filters: {
    timeFun: function(val) {
      if (val) {
        var now = new Date(val);
        var year = now.getYear() - 100;
        var month = now.getMonth() + 1;
        month = month > 9 ? month : "0" + month;
        var date = now.getDate();
        date = date > 9 ? date : "0" + date;
        var hour = now.getHours();
        hour = hour > 9 ? hour : "0" + hour;
        var minute = now.getMinutes();
        minute = minute > 9 ? minute : "0" + minute;
        return (
          "20" + year + "-" + month + "-" + date + " " + hour + ":" + minute
        );
      } else {
        return "无";
      }
    },
    strFun: function(val) {
      if (val) {
        return val;
      } else {
        return "无";
      }
    },
    typeFun: function(val) {
      if (val) {
        if (val == "APPOINTMENT") {
          return "预约面试";
        } else if (val == "APPOINTMENT_NEXT") {
          return "通过进入下一轮";
        } else if (val == "SEND_OFFER") {
          return "发送offer";
        } else if (val == "INTERVIEW_REFUSE") {
          return "面试失败";
        } else if (val == "REFUSE_INTERVIEW") {
          return "拒绝面试";
        } else if (val == "INTERVIEW_CANCEL") {
          return "面试取消";
        } else if (val == "ADD_BLACK_LIST") {
          return "加入黑名单";
        } else if (val == "JOIN_FAILED") {
          return "入职失败";
        } else if (val == "NOT_MATCH") {
          return "不匹配";
        }
      } else {
        return "无";
      }
    },
    statusFun: function(val) {
      if (val) {
        if (val == 1) {
          return "其他";
        } else if (val == 2) {
          return "储备人才";
        } else if (val == 4) {
          return "拉黑";
        } else if (val == 8) {
          return "待面试";
        } else if (val == 16) {
          return "面试中";
        } else if (val == 32) {
          return "待入职";
        } else if (val == 64) {
          return "已入职";
        } else if (val == 128) {
          return "已沟通";
        }
      } else {
        return "无";
      }
    },
    sourceFun: function(val) {
      if (val) {
        var self = this;
        var descStr = "";
        var descArr = JSON.parse(sessionStorage.getItem("sourcestr"));
        descArr.forEach(function(ele, ind) {
          if (ele.value == val) {
            descStr = ele.desc;
          }
        });
        return descStr;
      } else {
        return "无";
      }
    },
    educationFun: function(val) {
      if (val) {
        var self = this;
        var descStr = "";
        var descArr = [
          { name: "无学历", inde: 1 },
          { name: "初中", inde: 2 },
          { name: "职高", inde: 4 },
          { name: "中专", inde: 8 },
          { name: "技校", inde: 16 },
          { name: "高中", inde: 32 },
          { name: "大专", inde: 64 },
          { name: "本科", inde: 128 },
          { name: "硕士", inde: 256 },
          { name: "博士", inde: 512 }
        ];
        descArr.forEach(function(ele, ind) {
          if (ele.inde == val) {
            descStr = ele.name;
          }
        });
        return descStr;
      } else {
        return "无";
      }
    },
    positionFun: function(val) {
      if (val) {
        var self = this;
        var descStr = "";
        var descArr = JSON.parse(sessionStorage.getItem("poststr"));
        descArr.forEach(function(ele, ind) {
          if (ele.value == val) {
            descStr = ele.desc;
          }
        });
        return descStr;
      } else {
        return "无";
      }
    }
  },
  // 监视
  watch: {}
};
</script>
<style scoped>
.result-content {
  width: 90%;
  min-height: 141px;
  margin: 0 auto;
  overflow: hidden;
}
.result-li-top {
  float: left;
  display: flex;
  width: 33%;
  height: 24px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.result-li-center {
  display: flex;
  width: 100%;
  height: 40px;
  align-items: center;
}
.li-center-left {
  display: flex;
  align-items: center;
}
.li-center-right {
  display: flex;
  align-items: center;
  margin-left: 140px;
}
.result-li-top-o {
  margin-top: 36px;
}
.result-li-top-t {
  margin-top: 24px;
}
.li-left {
  width: 70px;
  height: 22px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.85);
  line-height: 22px;
  text-align: right;
  font-weight: 600;
}
.li-right {
  min-width: 70px;
  height: 22px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  margin-left: 10px;
}

.result-li-bot {
  display: flex;
  width: 100%;
  align-items: center;
  height: 40px;
}
.result-li {
  height: 141px;
  border-bottom: 1px solid rgba(232, 232, 232, 1);
  width: 100%;
}
#nullLi {
  height: 400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#nullLi img {
  width: 300px;
  /* height: 300px; */
}
.main-list-feedback {
  position: relative;
  cursor: pointer;
  margin-top: 22px;
  margin-left: 24px;
  height: 48px;
  text-align: center;
  line-height: 48px;
  width: 96px;
  cursor: pointer;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.65);
}

.main-list-basic {
  margin-top: 22px;
  margin-left: 24px;
  position: relative;
  height: 48px;
  text-align: center;
  line-height: 48px;
  width: 96px;
  cursor: pointer;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.65);
}

.main-list-select {
  color: rgba(250, 140, 22, 1);
  position: relative;
  font-weight: 600;
}

.main-list-select::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(250, 140, 22, 1);
  content: "";
}

.main-list-title {
  width: 100%;
  display: flex;
  height: 70px;
  border-bottom: 1px solid rgba(232, 232, 232, 1);
}

.main-content {
  width: 100%;
  min-height: 720px;
  overflow: hidden;
}
.button-save {
  margin-left: 108px;
  width: 74px;
  height: 32px;
  border-radius: 4px;
  background-color: rgba(250, 140, 22, 1);
  text-align: center;
  line-height: 32px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 1);
}
.button-cancel {
  cursor: pointer;
  margin-left: 8px;
  width: 74px;
  height: 32px;
  border: 1px solid #ffd9d9d9;
  text-align: center;
  line-height: 32px;
  font-size: 14px;
  border-radius: 4px;
  background-color: #fff;
  color: rgba(0, 0, 0, 0.65);
}
.list-button {
  margin-top: 45px;
  width: 500px;
  display: flex;
}

.list-file-r-file label {
  border-radius: 4px;
  width: 110px;
  height: 31px;
  line-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  cursor: pointer;
  border: 1px solid #ffd9d9d9;
}
.list-file-r-file label img {
  width: 14px;
  height: 14px;
}
.list-file-r-file a {
  margin: 0;
  padding: 0;
  display: block;
  border-radius: 4px;
  width: 110px;
  height: 31px;
  line-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  cursor: pointer;
  border: 1px solid #ffd9d9d9;
}
.list-file-r-file div {
  margin: 0;
  padding: 0;
  display: block;
  border-radius: 4px;
  width: 110px;
  height: 31px;
  line-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  cursor: pointer;
  border: 1px solid #ffd9d9d9;
}

.list-file-r-file input {
  opacity: 0;
  width: 0;
  height: 0;
}

.list-file-r-file {
  min-width: 110px;
  height: 32px;
  display: flex;
}
.list-file-r-look {
  margin-left: 25px;
}

.list-file-r-img {
  min-width: 120px;
  height: 30px;
}
.list-file-r-img a {
  margin: 0;
  padding: 0;
  display: block;
  border-radius: 4px;
  width: 110px;
  height: 31px;
  line-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  cursor: pointer;
  border: 1px solid #ffd9d9d9;
}
.list-file-r-img div {
  margin: 0;
  padding: 0;
  display: block;
  border-radius: 4px;
  width: 110px;
  height: 31px;
  line-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  cursor: pointer;
  border: 1px solid #ffd9d9d9;
}

.list-file-right {
  width: 500px;
  height: 50px;
  margin-left: 15px;
  display: flex;
}

.list-file {
  display: flex;
  height: 32px;
  margin-top: 35px;
  width: 100%;
}

.list-file > div:nth-child(1) {
  width: 93px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  text-align: right;
}

.list-text {
  display: flex;
  min-height: 32px;
  width: 100%;
  margin-top: 35px;
}

.list-text > div:nth-child(1) {
  width: 93px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  text-align: right;
}
.list-text > div:nth-child(2) textarea {
  width: 80%;
  resize: none;
  height: 129px;
  border: 1px solid #ffd7d7d7;
  border-radius: 4px;
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
  padding-top: 7px;
  padding-left: 7px;
}
.list-text > div:nth-child(2) {
  margin-left: 15px;
  width: calc(100% - 110px);
  min-height: 32px;
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
}

.list-two-list {
  display: flex;
  width: 50%;
  align-items: center;
}
.list-two-list > div:nth-child(1) {
  width: 93px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  text-align: right;
}
.list-two-list > div:nth-child(2) {
  margin-left: 15px;
  width: calc(100% - 118px);
  /* border: 1px solid red; */
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
}
.list-two-list > div:nth-child(2) input {
  width: 94%;
}
.list-two-list > div:nth-child(2) select {
  width: calc(94% + 7px);
}
.list-two > div:nth-child(2) {
  margin-left: 15px;
}

.list-two {
  display: flex;
  align-items: center;
  height: 32px;
  margin-top: 35px;
}

select {
  width: 207px;
  height: 32px;
  border-radius: 4px;
  line-height: 32px;
  color: rgba(0, 0, 0, 0.65);
  border: 1px solid #ffd7d7d7;
  padding-left: 3px;
  font-size: 14px;
}
input {
  width: 200px;
  height: 32px;
  border-radius: 4px;
  line-height: 32px;
  color: rgba(0, 0, 0, 0.65);
  border: 1px solid #ffd7d7d7;
  padding-left: 7px;
  font-size: 14px;
}
select::-ms-expand,
select::-webkit-expand {
  display: none;
}

.main-list > div {
  width: 100%;
  /* min-height: 32px; */
}

.main-list {
  width: 100%;
  margin-top: 5px;
  background-color: #ffff;
  min-height: 720px;
}

.main-title-noSelect {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}
.main-title-select {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.85);
  font-weight: 600;
}

.main-title-right {
  width: 23px;
  text-align: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
}

.main-title ul {
  width: 100%;
  display: flex;
  height: 54px;
  margin-left: 34px;
}
.main-title ul li {
  display: flex;
}
.main-title {
  width: 100%;
  height: 54px;
  background-color: #fff;
  line-height: 54px;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: inset 0px 3px 3px 0px #ccc;
}
.content {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(240, 242, 245, 1);
  min-height: 720px;
  /* border: 1px solid red; */
}

.content-center {
  overflow: hidden;
  width: calc(100% - 48px);
  margin-left: 24px;
  background-color: #fff;
  margin-top: 24px;
  border-radius: 3px;
  min-height: calc(100% - 78px - 24px);
  margin-bottom: 24px;
}

/*取消弹出框*/

.delPopup {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 1000000;
}

.showdel {
  display: none;
}

.button-lookShow-save {
  width: 74px;
  height: 32px;
  border-radius: 4px;
  background-color: rgba(250, 140, 22, 1);
  text-align: center;
  line-height: 32px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 1);
}

.main-lookShow-button {
  height: 55px;
  display: flex;
  width: 100%;
  margin-top: 25px;
  align-items: center;
  justify-content: center;
}
.main-lookShow-bottomNoLOk {
  width: 90%;
  margin: 0 auto;
  margin-top: 36px;
  height: 500px;
  border: 1px solid #ccc;
  line-height: 500px;
  font-size: 20px;
  color: #ccc;
  text-align: center;
}

.main-lookShow-bottom .main-lookShow-bottom-pdfImg {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
}
.main-lookShow-bottom img {
  width: 100%;
}
.main-lookShow-bottom {
  width: 90%;
  margin: 0 auto;
  margin-top: 36px;
  height: 500px;
  border: 1px solid #ccc;
}

.main-lookShow-top > div:nth-child(1) {
  font-size: 16px;
  font-weight: 600;
  color: #5c5c5c;
  margin-left: 30px;
  font-size: 20px;
  color: rgba(0, 0, 0, 1);
}

.main-lookShow-top > div:nth-child(2) {
  margin-right: 20px;
  width: 35px;
  height: 35px;
  text-align: center;
  line-height: 35px;
  border: 1px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  color: #ccc;
}

.main-lookShow-top {
  display: flex;
  justify-content: space-between;
  height: 22px;
  margin-top: 30px;
  align-items: center;
}

.main-lookShow {
  width: 900px;
  height: 700px;
  background-color: #fff;
  border-radius: 5px;
}

.lookShow {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.delContent {
  width: 525px;
  height: 280px;
  background-color: #fff;
  border: 1px solid #eaeaea;
  box-shadow: 0px 10px 10px #eaeaea;
  border-radius: 7px;
  margin: calc((100vh - 280px) / 2) auto;
  z-index: 100000;
}

.slide-fade-enter-active {
  transition: all 0.7s ease;
}

.slide-fade-enter,
.slide-fade-leave-active {
  transform: translateY(-30px);
  opacity: 0;
}
</style>